var qiniu = require('qiniu');
var fs = require('fs');
const accessKey = "QCCKm9oihg-7jNmKKP-MmnP8E6AZRIUvlC24uGZX"
const secretKey = "7iVSCB1pJ21jDHJEOgcZyE7Hq5WgpcHTBmHgT4X8"
var bucket = "lmt3"
// 简单上传凭证
var options = {
  scope: bucket,
  domain:"qiniu.liumingtai.com"
};
var mac = new qiniu.auth.digest.Mac(accessKey, secretKey);
var putPolicy = new qiniu.rs.PutPolicy(options);


export function createToken () {
  return putPolicy.uploadToken(mac)
}